//Copyright 2009 SyntaxMonster. All rights reserved.

$(function(){
	$('.dialog-tab p:gt(0)').hide();
	
	$('.dialog-tab .heading ul li a').click(function(){
		var href = $(this).attr("href");
		$('.dialog-tab .heading ul li').removeClass("selected");
		$(this).parent().addClass("selected");
		$('.dialog-tab p:not('+href+')').hide();
		$('.dialog-tab p'+href).show();
	});
	
	$('.dialog-warning .close, .dialog-error .close, .dialog-success .close, .dialog-info .close').click(function(){
		$(this).parent().fadeOut();
	});
	
});
